#app {
  $topnavHeight: 60px;
  $mainContainer:calc(100% - 60px);
  .navbar {
    height: $topnavHeight;
  }

  .main-container {
    height:$mainContainer;
    transition: margin-left .28s;
    margin-left: $sideBarWidth;
    position: relative;
    top: $topnavHeight;
  }
  .fixed-header+.app-main {
    padding-top: 50px;
  }
  
  .hasTagsView {
    .fixed-header+.app-main {
      padding-top:  60px +34px;
    }
  }
  .sidebar-container {
    transition: width 0.28s;
    width: $sideBarWidth !important;
    background-color: $menuBg;
    height: $mainContainer;
    position: fixed;
    font-size: 0px;
    top: $topnavHeight;
    bottom: 0;
    left: 0;
    z-index: 66;
    overflow: hidden;

    // reset element-ui css
    .horizontal-collapse-transition {
      transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
    }

    .scrollbar-wrapper {
      overflow-x: hidden !important;
    }

    .el-scrollbar__bar.is-vertical {
      right: 0px;
    }

    .el-scrollbar {
      height: 100%;
    }

    &.has-logo {
      .el-scrollbar {
        height: $mainContainer;
      }
    }

    .is-horizontal {
      display: none;
    }

    a {
      display: inline-block;
      width: 100%;
      overflow: hidden;
    }

    .svg-icon {
      margin-right: 10px;
      width: 1.3em;
      height: 1.3em;
      vertical-align: middle;
    }

    .el-menu {
      border: none;
      height: 100%;
      width: 100% !important;
    }

    .el-submenu__title i {
      color: #bfcbd9;
    }

    .el-submenu__title {
      padding-left: 15px !important;

    }
    .el-menu-item.submenu-title-noDropdown{padding-left: 15px !important;}
    // menu hover
    .submenu-title-noDropdown,
    .el-submenu__title {
      &:hover {
        background-color: $menuHover !important;
      }
    }

    .is-active>.el-submenu__title {
      border-left: 2px solid #f90;
      background-color: #0e54ca !important;
      padding-left: 13px !important;

      .svg-icon {
        margin-left: 0px; 
      }

      color: $subMenuActiveText !important;
    }

    & .nest-menu .el-submenu>.el-submenu__title,
    & .el-submenu .el-menu-item {
      height: 40px; line-height: 40px;
      min-width: $sideBarWidth !important;
      background-color: $subMenuBg !important;
      .svg-icon {
        //暂时隐掉二级菜单的icon
         display: none;
      }
      &:hover {
        background-color: $subMenuHover !important;
      }
    }
  }

  .hideSidebar {
    .sidebar-container {
      width: 54px !important;
    }

    .main-container {
      margin-left: 54px;
    }

    .submenu-title-noDropdown {
      padding: 0 !important;
      position: relative;

      .el-tooltip {
        padding: 0 !important;

        .svg-icon {
          margin-left: 15px;
        }
      }
    }

    .el-submenu {
      overflow: hidden;

      &>.el-submenu__title {
        padding: 0 !important;


        .svg-icon {
          margin-left: 15px;
        }

        i {
          color: #fff;
        }

        .el-submenu__icon-arrow {
          display: none;
        }
      }

      &.is-active {
        .svg-icon {
          margin-left: 13px;
        }
      }
    }

    .el-menu--collapse {
      .el-submenu {
        &>.el-submenu__title {
          &>span {
            height: 0;
            width: 0;
            overflow: hidden;
            visibility: hidden;
            display: inline-block;
          }
        }
      }
    }
  }

  .el-menu--collapse .el-menu .el-submenu {
    min-width: $sideBarWidth !important;
  }

  // mobile responsive
  .mobile {
    .main-container {
      margin-left: 0px;
    }

    .sidebar-container {
      transition: transform .28s;
      width: $sideBarWidth !important;
    }

    &.hideSidebar {
      .sidebar-container {
        pointer-events: none;
        transition-duration: 0.3s;
        transform: translate3d(-$sideBarWidth, 0, 0);
      }
    }
  }

  .withoutAnimation {

    .main-container,
    .sidebar-container {
      transition: none;
    }
  }
}

// when menu collapsed
.el-menu--vertical {
  &>.el-menu {
    .svg-icon {
      margin-right: 10px;
    }
  }

  .nest-menu .el-submenu>.el-submenu__title,
  .el-menu-item {
      height: 40px;
      line-height: 40px;
    &:hover {
      // you can use $subMenuHover
      background-color: $menuHover !important;
    }
  }

  .el-submenu {
    .el-menu-item {
      height: 40px;
      line-height: 40px;
    }
  }

  // the scroll bar appears when the subMenu is too long
  >.el-menu--popup {
    max-height: 100vh;
    overflow-y: auto;
    min-width: 120px;

    &::-webkit-scrollbar-track-piece {
      background: #d3dce6;
    }

    &::-webkit-scrollbar {
      width: 6px;
    }

    &::-webkit-scrollbar-thumb {
      background: #99a9bf;
      border-radius: 20px;
    }
  }
}

u {
  text-decoration: none;
}

.left_notop{
  .rightPanel .handle-button{
    top: 0px !important;
    background-color: #1966e2a8 !important;
    width: 30px;
    height: 28px;
    position: absolute;
    left: -30px;
    text-align: center;
    font-size: 24px;
    border-radius: 6px 0 0 6px !important;
    z-index: 0;
    pointer-events: auto;
    cursor: pointer;
    color: #fff;
    line-height: 24px;
   }
  #app {
    .sidebar-container{padding-top: 60px; height: calc(100% - 0px); top: 0px;
      .scrollbar-wrapper {
        height:calc(100% - 40px);
      }
    }
    .main-container {
      height: calc(100% - 2px); top: 2px;}

    .hideSidebar{ 
      .navbar .logo_text{ display: none; width: 0px;}
      .sidebar-container{ 
        .scrollbar-wrapper {
        height:calc(100% - 120px);
      }
      }
    }
    .openSidebar{
      .bk_header{
        .navbar .right-menu{
          position: fixed;
          bottom: 6px;
          left: 50px;
          height: 30px;
          margin-right: 0px;
          line-height: 30px;
          .right-menu-item{padding: 8px 16px;
            height: 36px; display: inline-block;}
          .avatar-container .avatar-wrapper .user-avatar{ top: 0px; left: -3px; top: -3px !important;}
      }
      }

    }
  .bk_header{ position: fixed; width: 100%; height: 1px; z-index: 68;
    .navbar{ height: 1px; overflow: visible;
      position: relative;}
  .navbar .hamburger-container{height: 40px; width: 54px; position: fixed;bottom: 0px; line-height: 40px;
  z-index: 2;}
  .navbar .logo{
    // background-color: #1966e2;
  height: 60px;
  left: 0px;
  margin-left: 0px; margin-right: 0px;
  background-position: center;
  width: 54px;}
  
  .navbar .logo_text{width: 106px;
  // background-color: #1966e2;
  font-size: 16px;
  line-height: 21px;
  text-align: center;
  height: 60px;
  padding-top: 10px;
  padding-right: 8px;}
  .navbar .right-menu{
    position: fixed;
    bottom: 80px;
    left: 0px;
    height: 30px;
    margin-right: 0px;
    line-height: 30px;
    .right-menu-item{padding: 8px 16px;
      height: 36px; display: block;}
    .avatar-container .avatar-wrapper .user-avatar{ top: 0px; left: -3px; top: 0px !important;}
  }
   }
  }
}